<?php
require('../vendor/autoload.php');

use Nbobtc\Http\Client;
use Nbobtc\Command\Command;

$cmd = new Command('getnetworkinfo');
$client = new Client('http://user:123456@127.0.0.1:18443');

$rsp = $client->sendCommand($cmd);

$cnt = $rsp->getBody()->getContents();
echo $cnt;